package com.ftg.learn.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ftg.learn.rbac.entity.User;
import com.ftg.learn.util.ResEntity;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

/**
 * 用户处理类
 * @author Guo
 * @date 2022/2/8
 */
public interface IUserService extends IService<User> {

    ResEntity logIn(String username, String password, HttpSession session);

    List<Map<String,Object>> showRoleForUserId(Long uid);


    boolean roleGroup(List<Long> rid,Long uid);

}
